package com.woniuxy.happylife.suggest.service.impl;

import com.woniuxy.happylife.entity.Business;
import com.woniuxy.happylife.suggest.dao.BusinessDao;

import com.woniuxy.happylife.suggest.service.PlatformService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Fu
 * @Date 2022-02-23 10:02
 */
@Service
public class PlatformServiceImpl implements PlatformService {
    @Resource
    BusinessDao businessDao;
    @Override
    public List<Business> findAll() {
        return businessDao.findAll();
    }

    @Override
    public int update(Business business) {
        return businessDao.update(business);
    }
}
